 
<?php
 
ini_set("display_errors", ON);

 $link = mysqli_connect('localhost', 'waschma', 'T78MEvcmdA6hXvFM', 'waschma');

if (!$link) {
    die('Connect Error (' . mysqli_connect_errno() . ') '
            . mysqli_connect_error());
}

echo 'Success... ' . mysqli_get_host_info($link) . "\n";


$query = "SELECT name FROM users";

if ($stmt = $link->prepare($query)) {

    /* execute statement */
    $stmt->execute();

    /* bind result variables */
    $stmt->bind_result($name);

    /* fetch values */
    while ($stmt->fetch()) {
        printf ("%s<br>", $name);
    }

    /* close statement */
    $stmt->close();
}



echo "<br>errors : $link->errno : $link->error";


mysqli_close($link);
?>